#!/usr/bin/env bash
# 实例文件：parseViaFunc
#
# 通过函数调用解析ls -l的输出
# ls -l的输出类似于以下这样
# -rw-r--r--	1	albing	users	126	Jun	10	22:50	fnsize
function lsparts()
{
    PERMS=$1
    LCOUNT=$2
    OWNER=$3
    GROUP=$4
    SIZE=$5
    CRMONTH=$6
    CRDAY=$7
    CRTIME=$8
    FILE=$9
}


lsparts $(ls -l $1)
echo $FILE has $LCOUNT 'link(s)' and is $SIZE bytes long.
